package com.eipc.event;

import android.content.Intent;

public class TagValue {
	
	/**
	 * 打开一个网页的形式
	 */
	public final static int BROWSE_TYPE = 1;
	public final static int DIALOG_TYPE = 2;
	public final static int ACTIVITY_TYPE = 3;
	public final static int OTHER_TYPE = 4;
	public final static int INTENT_TYPE = 5;
	public final static long CALL = 1;
	public final static long SMS = 2;
	
	public TagValue(){}
	
	public TagValue(String url){
		this.url = url;
		this.type = BROWSE_TYPE;
	}
	
	public TagValue(Class extra){
		this.extra = extra;
		this.type = ACTIVITY_TYPE;
	}
	
	public TagValue(int dialogId){
		this.dialogId = dialogId;
		this.type = DIALOG_TYPE;
	}
	
	public TagValue(long other){
		this.other = other;
		this.type = OTHER_TYPE;
	}
	
	public TagValue(int type,Intent intent){
		this.type = type;
		this.intent = intent;
	}
	
	public String url;
	public Class extra;
	public int type;
	public int dialogId;
	public long other;
	public Intent intent;
}
